package com.akeil.flash.service;

import java.util.List;

import com.akeil.flash.pojo.Data;

public interface IDataService {
	
	void insert(Data data);
	
	void deleteByPrimaryKey(Integer id);
	
	List<Data> selectAll();
	
	List<String> selectDistinctTestDate();
	
	List<String> selectSamplenameByTestDate(String testdate);
	
	List<Data> selectDatasByTestDate(String testdate);
	
	int deleteByDateFromTo(String from,String to);
	
	List<Data> selectTestNumberByTwoTestDate(String testdateFrom,String testdateTo);
	
	List<String> selectTestYear();
    
    List<String> selectTestMonthByYear(String year);
    
    List<String> selectTestDayByYearMonth(String yearmonth);
    
    List<Data> selectDataBySamplename(String samplename);
    
    List<Data> selectDataByIds(List<Integer> ids);
    
    Data selectDataByPrimaryKey(Integer id);
    
    int updateByPrimayKey(Data data);
    
    List<Data> selectDataToday();
    
    List<Data> selectDataTodayNoStatus(int status);
    
    List<Data> selectDataByPeriodAndName(String testdateFrom,String testdateTo,String samplename,String sampleno);
}
